<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>Vue</title>
		<link rel="stylesheet" href="index.css" />
		<script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script>
	</head>
	<body>
		
		<div id="app">
  			<p>{{age}}</p>
  			<!--单机-->
  			<button v-on:click="age++">加一岁</button>
  			<button v-on:click="age--">减一岁</button>
  			<!--双击-->
  			<button v-on:dblclick="add(10)">加10岁</button>
  			
  			<div id='canvas' v-on:mousemove="updateXY(event)">
  				{{x}},
  				{{y}}
  			</div>
		</div>
		
	</body>
</html>
<script src="./index.js"></script>

